package cn.hr.service;

import cn.hr.base.BaseService;
import cn.hr.pojo.Archives;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.CacheEvict;

import java.sql.SQLException;

/**
 * 人事档案服务接口
 * @author MO
 *
 */
public interface ArchivesService extends BaseService<Archives> {
    /**
     * 恢复数据
     */
    @CacheEvict(allEntries = true)
    boolean recover(Archives archives);

    /**
     * 删除档案附属简历,图片
     * @return
     * @throws SQLException
     */
    boolean delFile( Integer id, Integer distinguish) throws SQLException;

    /**
     * 查询简历或图片路径
     * @return
     */
    Archives selectPath(Integer id,Integer distinguish)throws SQLException;



}
